Package com.cisco.pt.ipc.sim
Interface Pc
- All Known Subinterfaces:
Server
- All Known Implementing Classes:
PcImpl,ServerImpl
Information provided by the PKI file:
\class Pc
\brief Pc is PC device object with a terminal line.
\example network().getDevice("PC0")
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:booleanInformation provided by the PKI file:Information provided by the PKI file:voidsetDefaultGateway(IPAddress gateway) Information provided by the PKI file:voidsetDhcpFlag(boolean status) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.sim.Device
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Method Details
-
getCommandPrompt
TerminalLine getCommandPrompt()Information provided by the PKI file:
\brief Returns the command prompt of the PC. \return TerminalLine, the TerminalLine object.- Returns:
- TerminalLine Returns a TerminalLine
-
setDhcpFlag
void setDhcpFlag(boolean status) Information provided by the PKI file:
\brief Enables or disables DHCP. \param status, true to enable DHCP, false to disable it.- Parameters:
status- Takes in a parameter of status
-
getDhcpFlag
boolean getDhcpFlag()Information provided by the PKI file:
\brief Returns true if DHCP is enabled, otherwise false. \param bool, true if DHCP is enabled, otherwise false.- Returns:
- boolean Returns a boolean
-
setDefaultGateway
Information provided by the PKI file:
\brief Sets the default gateway. \param gateway, the IP address of the default gateway.- Parameters:
gateway- Takes in a parameter of gateway
-
getRs232Port
Port getRs232Port()Information provided by the PKI file:
\brief Returns the RS232 port. \return Port, the Port object of the RS232 port.- Returns:
- Port Returns a Port
-